package com.p2p.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 借款信息表
 * </p>
 *
 * @author 黄旭彬
 * @since 2023-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Bidrequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 借款ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 借款类型
     */
    @TableField("bidRequestType")
    private String bidrequesttype;

    /**
     * 借款状态
     */
    @TableField("bidRequestState")
    private Integer bidrequeststate;

    /**
     * 借款金额
     */
    @TableField("bidRequestAmount")
    private BigDecimal bidrequestamount;

    /**
     * 当前利率
     */
    @TableField("currentRate")
    private BigDecimal currentrate;

    /**
     * 还款期限（月）
     */
    @TableField("monthes2Return")
    private Integer monthes2return;

    /**
     * 投标次数
     */
    @TableField("bidCount")
    private Integer bidcount;

    /**
     * 总回报金额
     */
    @TableField("totalRewardAmount")
    private BigDecimal totalrewardamount;

    /**
     * 当前已投标金额
     */
    @TableField("currentSum")
    private BigDecimal currentsum;

    /**
     * 借款标题
     */
    private String title;

    /**
     * 借款描述
     */
    private String description;

    /**
     * 备注
     */
    private String note;

    /**
     * 截止日期
     */
    @TableField("disableDate")
    private LocalDateTime disabledate;

    /**
     * 借款人ID
     */
    private Long createuserId;

    /**
     * 剩余天数
     */
    @TableField("disableDays")
    private Integer disabledays;

    /**
     * 最小投标金额
     */
    @TableField("minBidAmount")
    private BigDecimal minbidamount;

    /**
     * 申请时间
     */
    @TableField("applyTime")
    private LocalDateTime applytime;

    /**
     * 发布时间
     */
    @TableField("publishTime")
    private LocalDateTime publishtime;


}
